package com.sdp.wx.db.wx_assets_emergency_receive.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2024-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wx_assets_emergency_receive")
public class WxAssetsEmergencyReceive extends Model<WxAssetsEmergencyReceive> {

    private static final long serialVersionUID=1L;

    /**
     * 内码
     */
    @TableId("key_id")
    @TableField("key_id")
    private String keyId;

    /**
     * 单位
     */
    @TableField("org_no")
    private String orgNo;

    /**
     * 领用人编号
     */
    @TableField("emp_no")
    private String empNo;

    /**
     * 领用人姓名
     */
    @TableField("emp_name")
    private String empName;

    /**
     * 领用时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("receive_time")
    private LocalDateTime receiveTime;

    /**
     * 领用数量
     */
    @TableField("receive_num")
    private BigDecimal receiveNum;

    /**
     * 归还时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("return_time")
    private LocalDateTime returnTime;
    
    /**
     * 归还数量
     */
    @TableField("return_num")
    private BigDecimal returnNum;

    /**
     * 物资名称
     */
    @TableField("wz_name")
    private String wzName;

    /**
     * 物资规格
     */
    @TableField("wz_type")
    private String wzType;

    /**
     * 生成时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
